Cannot use `su` or `sudo` after set up key-based access to SSH
Posted
by
OrangeTux
on Super User
See other posts from Super User
or by OrangeTux
Published on 2012-06-16T08:56:44Z
Indexed on
2012/06/16
9:18 UTC
Read the original article
Hit count: 211
I'm following this tuturial to setup key-based access to the SSH
I created a user. I add copy the key to the client via ssh-copy-id <username>@<host>
Becasuse ssh <username>@<host>
still prompts for a password I run ssh-add
on the local machine. The terminal doens't prompt for a password, I can login without using a password.
But I cannot run su
anymore. Every input for the password results in Authentication failure
.
I tried it again. But before coping the key, I added to the sudoer file. Copied key, ssh-add. But now I cannot login to my SSH shell att all?
How can I setup a key-based SSH access with the possibiluty to use su
or sudo
?
© Super User or respective owner